<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/12/3
 * Time: 23:52
 */

namespace app\common\model;


use think\Model;

class Orders extends Model
{
    //连接数据库
    protected $table= 'shop_order';
    protected $pk= 'oid';
    protected $auto = ['gtime'];
    protected function setGtimeAttr()
    {
        return time();
    }
}